package pl.un4giv3n.mightvsmagic.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @author andrzejewskia this is a concrete item, created from the item
 *         template, bought on bazar by the player
 */
@Entity
public class ItemStub implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * id
	 */
	private Long id;
	/**
	 * item name
	 */
	private String name;
	/**
	/**
	 * item image url
	 */
	private String imgUrl;

	@SuppressWarnings("unused")
	private ItemStub() {
		super();
	}

	public ItemStub(String name, String imgUrl) {
		this.name = name;
		this.imgUrl = imgUrl;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	void setId(Long id) {
		this.id = id;
	}

}
